<template>
  <div>
    <h2>部门：{{ depart_name }}</h2>
    <el-row :gutter="20" style="margin-left: 0; margin-right: 0">
      <el-col :span="6">
        <div class="grid-content bg-purple">
          <div class="name">{{ admin_name }}({{ role_id }})</div>
          <div class="role">角色：{{ role_id }}</div>
          <div class="num">TEL:{{ admin_phone }}</div>
        </div>
      </el-col>
      <el-col :span="6">
        <div class="grid-content bg-purple">
          <div class="name">{{ admin_name7 }}({{ role_id7 }})</div>
          <div class="role">角色：{{ role_id7 }}</div>
          <div class="num">TEL:{{ admin_phone7 }}</div>
        </div>
      </el-col>
      <el-col :span="6">
        <div class="grid-content bg-purple">
          <div class="name">{{ admin_name1 }}({{ role_id1 }})</div>
          <div class="role">角色：{{ role_id1 }}</div>
          <div class="num">TEL:{{ admin_phone1 }}</div>
        </div>
      </el-col>
      <el-col :span="6">
        <div class="grid-content bg-purple">
          <div class="name">{{ admin_name2 }}({{ role_id2 }})</div>
          <div class="role">角色：{{ role_id2 }}</div>
          <div class="num">TEL:{{ admin_phone2 }}</div>
        </div>
      </el-col>
      <el-col :span="6">
        <div class="grid-content bg-purple">
          <div class="name">{{ admin_name3 }}({{ role_id3 }})</div>
          <div class="role">角色：{{ role_id3 }}</div>
          <div class="num">TEL:{{ admin_phone3 }}</div>
        </div>
      </el-col>
      <el-col :span="6">
        <div class="grid-content bg-purple">
          <div class="name">{{ admin_name4 }}({{ role_id4 }})</div>
          <div class="role">角色：{{ role_id4 }}</div>
          <div class="num">TEL:{{ admin_phone4 }}</div>
        </div>
      </el-col>
      <el-col :span="6">
        <div class="grid-content bg-purple">
          <div class="name">{{ admin_name5 }}({{ role_id5 }})</div>
          <div class="role">角色：{{ role_id5 }}</div>
          <div class="num">TEL:{{ admin_phone5 }}</div>
        </div>
      </el-col>
      <el-col :span="6">
        <div class="grid-content bg-purple">
          <div class="name">{{ admin_name6 }}({{ role_id6 }})</div>
          <div class="role">角色：{{ role_id6 }}</div>
          <div class="num">TEL:{{ admin_phone6 }}</div>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
  export default {
    name: "mydepartment",
    data() {
      return {
        depart_name: "编辑部",
        admin_name: "大乔",
        role_id: "美术",
        admin_phone: "151346516",
        admin_name1: "小乔",
        role_id1: "美术",
        admin_phone1: "18761864654",
        admin_name2: "范冰冰",
        role_id2: "主管",
        admin_phone2: "15791984756",
        admin_name3: "刘德华",
        role_id3: "主编",
        admin_phone3: "15791984756",
        admin_name4: "玉帝",
        role_id4: "CEO",
        admin_phone4: "15791984756",
        admin_name5: "貂蝉",
        role_id5: "美术",
        admin_phone5: "15791984756",
        admin_name6: "刘亦菲",
        role_id6: "编导",
        admin_phone6: "15791984756",
        admin_name7: "美猴王",
        role_id7: "大王",
        admin_phone7: "15791984756",
      };
    },
  };
</script>

<style lang="less" scoped>
  h2 {
    text-align: center;
  }
  .name,
  .role,
  .num {
    width: 100px;
    margin: 10px auto;
  }
  .el-row {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 20px;
    &:last-child {
      margin-bottom: 0;
    }
  }
  .el-col {
    border-radius: 4px;
  }
  .bg-purple-dark {
    background: #99a9bf;
  }
  .bg-purple {
    background: #d3dce6;
  }
  .bg-purple-light {
    background: #e5e9f2;
  }
  .grid-content {
    border-radius: 4px;
    min-height: 36px;
  }
  .row-bg {
    padding: 10px 0;
    background-color: #f9fafc;
  }
</style>